package com.djf.springaidemo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.djf.springaidemo.entity.ChatMessage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 26393
 * @Date 2025/5/3 2:05
 * @Version 1.0
 */
@Mapper
public interface ChatMessageMapper extends BaseMapper<ChatMessage> {

    List<ChatMessage> selectBySessionIdOrderByCreatedAt(@Param("sessionId") String sessionId);

    int deleteBySessionId(@Param("sessionId") String sessionId);
}
